package com.dragon.design.pattern.creational.factorymethod;

/**
 * @author dragon
 * @version V1.0.0-RELEASE
 * @date 2019/5/15 16:07
 */
public class Test {

    public static void main(String[] args) {
        VideoFactory javaVideoFactory = new JavaVideoFactory();
        Video javaVideo = javaVideoFactory.getVideo();
        javaVideo.produce();
        VideoFactory pythonVideoFactory = new PythonVideoFactory();
        Video pythonVideo = pythonVideoFactory.getVideo();
        pythonVideo.produce();
    }
}
